<template>
	<view class="g-quanzhu">
		<view class="g-quanzhu-content">
			<image class="g-quanzhu-img" :src="avatar"></image>
		</view>
		<image class="g-quanzhu-img-top" :src="ossUrl + '/static/image/gl1.png'" v-if="identity === '管理员'"></image>
		<image class="g-quanzhu-img-top" :src="ossUrl + '/static/image/qz1.png'" v-if="identity === '圈主'"></image>
	</view>
</template>

<script>
	export default {
		props: ['identity', 'avatar'],
		data(){
			return {
				
			}
		}
	}
</script>

<style lang="scss" scoped>
	
	.g-quanzhu {
		width: 100%;
		height: 100%;
		position: relative;
		.g-quanzhu-content {
			width: 100%;
			height: 100%;
			border-radius: 50%!important;
			box-sizing: border-box;
			padding: 5rpx;
			.g-quanzhu-img {
				width: 100%;
				height: 100%;
				border-radius: 50%!important;
			}
		}
		
		.g-quanzhu-img-top {
			position: absolute;
			top: 0;
			left: 0;
			z-index: 2;
			border-radius: 50%;
			width: 100%;
			height: 100%;
		}
	}
</style>